package psrc.logic.pages.cliente;

import java.util.ArrayList;
import java.util.List;

import psrc.logic.pages.base.ControllerBase;
import psrc.logic.util.beans.ClienteBean;

public class LoadClienteSeeController extends ControllerBase {
	
	private static final long serialVersionUID = 1L;

	List<ClienteBean> clientes = new ArrayList<ClienteBean>();
	
	@Override
	public String executeController() throws Exception {
		ClienteModel model = new ClienteModel();
		try{
			this.clientes = model.getClientesList();
			
		} catch (Exception e) {
			return "genericError";
		}
		return SUCCESS;
	}
	
	public List<ClienteBean> getClientes() {
		return clientes;
	}

	public void setClientes(List<ClienteBean> clientes) {
		this.clientes = clientes;
	}



}
